'use strict';

//require('babel-polyfill');
import 'my-default-style';
//require("@/components/src/common/form/style/dz_form.css");
import React from "react";
import { render } from 'react-dom';
import { Router, Route, hashHistory, Redirect } from 'react-router';
//const { AppContainer , hot } = require('react-hot-loader');

import IndexRouter from './route/index_router';
//const RootRouter = require('./route/index_root_router');

//const IndexApp = hot(module)(IndexRouter);
//redux
import { Provider } from "react-redux";
import store from "@/redux";
const container = document.getElementById("root");

const isDevelopment = process.env.NODE_ENV == "development";


if (module.hot) {
    //console.log("hot")
    module.hot.accept()
}

render(
    (
        <Provider store={store}>
            <IndexRouter />
        </Provider>
    ), container
);